//
//  ClickMoreButtonVCone.m
//  UILbrary
//
//  Created by mac on 16/7/20.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ClickMoreButtonVCone.h"
#import "Constant.h"
#import "DXpopButtonOne.h"
@implementation ClickMoreButtonVCone
- (void)viewDidLoad{
    [super viewDidLoad];
    self.view.backgroundColor    = [UIColor whiteColor];
    UIButton *button             = [[UIButton alloc] initWithFrame:CGRectMake(20, 400, kAPP_With - 40, 40)];
    button.backgroundColor       = [UIColor orangeColor];
    [button setTitle:@"高级" forState:UIControlStateNormal];
    [button setTintColor:[UIColor whiteColor]];
    [self.view addSubview:button];
    [button addTarget:self action:@selector(buttonClickOne) forControlEvents:UIControlEventTouchUpInside];
}

- (void)buttonClickOne{
    NSArray *imageArr1           = @[@"about",@"bar",@"car"];
    NSArray *imageArr2           = @[@"about",@"bar",@"car",@"hart",@"home",@"me"];
    NSArray *titleArr1           = @[@"更多",@"高级",@"车辆"];
    NSArray *titleArr2           = @[@"远程熄火",@"关车窗",@"关天窗",@"取消熄火",@"开车窗",@"开天窗"];

    DXpopButtonOne *moreButton   = [[DXpopButtonOne alloc] initWithFrame:self.view.bounds];
    moreButton.topImageArr       = imageArr1;
    moreButton.bottomArr         = imageArr2;
    moreButton.topTitleArr       = titleArr1;
    moreButton.bottomTitleArr    = titleArr2;
    [self.view addSubview:moreButton];

    [moreButton popTop];
    moreButton.bottomButtonClick = ^(NSInteger cout,NSString *text){

        NSLog(@"---%ld---%@",cout,text);
    };

    moreButton.topButtonClick    = ^(NSInteger cout,NSString *text){
        NSLog(@"---%ld --- %@",cout,text);
    };

}
@end
